<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="UTF-8" />
    <title>Range - activeBarStart</title>
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <link href="../../../../../css/ionic.bundle.css" rel="stylesheet" />
    <link href="../../../../../scripts/testing/styles.css" rel="stylesheet" />
    <script src="../../../../../scripts/testing/scripts.js"></script>
    <script nomodule src="../../../../../dist/ionic/ionic.js"></script>
    <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>
    <style>
      .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(250px, 1fr));
        grid-row-gap: 20px;
        grid-column-gap: 20px;
      }
      h2 {
        font-size: 12px;
        font-weight: normal;

        color: #6f7378;

        margin-top: 10px;
      }
      @media screen and (max-width: 800px) {
        .grid {
          grid-template-columns: 1fr;
          padding: 0;
        }
      }
    </style>
  </head>

  <body>
    <ion-app>
      <ion-header>
        <ion-toolbar>
          <ion-title>Range - activeBarStart</ion-title>
        </ion-toolbar>
      </ion-header>
      <ion-content class="ion-padding">
        <div class="grid">
          <div class="grid-item">
            <h2>activeBarStart 0, value 0</h2>
            <ion-range
              aria-label="my range"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="0"
              value="0"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>activeBarStart 0, value 70</h2>
            <ion-range
              aria-label="my range"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="0"
              value="70"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>activeBarStart 0, value -70</h2>
            <ion-range
              aria-label="my range"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="0"
              value="-70"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>activeBarStart -30, value 0</h2>
            <ion-range
              aria-label="my range"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="-30"
              value="0"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>activeBarStart 30, value 0</h2>
            <ion-range
              aria-label="my range"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="30"
              value="0"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>activeBarStart is between steps</h2>
            <ion-range
              aria-label="my range"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="25"
              value="0"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>invalid activeBarStart value (less than min)</h2>
            <ion-range
              aria-label="my range"
              min="0"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="-30"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>invalid activeBarStart value (greater than max)</h2>
            <ion-range
              aria-label="my range"
              min="0"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="110"
            ></ion-range>
          </div>

          <div class="grid-item">
            <h2>activeBarStart is ignored with dual knobs enabled</h2>
            <ion-range
              aria-label="my range"
              min="-100"
              max="100"
              snaps="10"
              step="10"
              pin="true"
              active-bar-start="-30"
              dual-knobs="true"
              value="30"
            ></ion-range>
          </div>
        </div>
      </ion-content>
    </ion-app>
  </body>
</html>
